﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EquipmentManager.Dtos
{

    using GTS.Foundation;
    using ServiceStack;
    using ServiceStack.OrmLite;
    public class Todo : EditableObject
    {
        public string UserName { get; set; }
        public string Guid { get; set; }
        public string Desc{ get; set; }
        public bool Completed { get; set; }
    }

    [Route("/Todos", Verbs = "GET")]
    [Route("/Todos/{Id}", Verbs = "GET")]
    public class GetTodos
    {
        public int Id { get; set; }
        public string Filter { get; set; }

    }
    public class GetTodosResponse : IHasResponseStatus
    {
        public List<Todo> Entities { get; set; }
        public ResponseStatus ResponseStatus { get; set; }
    }

    [Route("/Todos", Verbs = "POST")]
    public class PostTodo
    {
        public Todo Entity { get; set; }
    }
    public class PostTodoResponse : IHasResponseStatus
    {
        public int Id { get; set; }
        public ResponseStatus ResponseStatus { get; set; }
    }

    [Route("/Todos/{Id}", Verbs = "DELETE")]
    public class DeleteTodo
    {
        public int Id { get; set; }
    }
    public class DeleteTodoResponse : IHasResponseStatus
    {
        public ResponseStatus ResponseStatus { get; set; }
    }
}
